package com.woniuxy.common;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200,"ok"),
    ERROR(500,"服务器内部错误"),
    NOT_FOUND(404,"访问资源不存在"),
    UNAUTHORIZED(401,"暂未登录或token已过期"),
    UNFORIDDEN(403,"没有访问权限"),
    VALIEDATE_PARAM(400,"请求参数不合法"),
    VAIEDATE_METHOD(405,"请求方法不允许");

    private int code;

    private String message;

    private ResultEnum(int code,String message){
        this.code = code;
        this.message = message;
    }
}
